function [] = plotRect(rect)
%plotRect Vykresli obdelniky
%   rect - souradnice obdelniku, struct
for i=1:length(rect);
  xy=rect(i).BoundingBox;
  plot([xy(1) xy(1) xy(1)+xy(3) xy(1)+xy(3) xy(1)],[xy(2) xy(2)+xy(4) xy(2)+xy(4) xy(2) xy(2)],'r-')
end
end

